from channels.routing import ProtocolTypeRouter
from channels.auth import AuthMiddlewareStack
from channels.routing import ProtocolTypeRouter, URLRouter
from chat_django.urls import websocket_urlpatterns


application = ProtocolTypeRouter({
    # Explicitly set 'http' key using Django's WSGI application.
    'websocket':
        URLRouter(
            websocket_urlpatterns
        )
})